package org.personal.entity;

import java.util.LinkedList;
import java.util.List;

import org.myhibernate.id.NumberID;

public class UserPage
{
	private int id=-1;
	
	private String userId="";
	private int pageId=-1;
	private int layoutId=-1;
	private List<String> portlets=new LinkedList<String>();
	
	
	public int getId() {
		if (id == -1)
		{
			id=NumberID.getId(UserPage.class).intValue();
		}
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public List<String> getPortlets() {
		return portlets;
	}
	public void setPortlets(List<String> portlets) {
		this.portlets = portlets;
	}
	public int getPageId() {
		return pageId;
	}
	public void setPageId(int pageId) {
		this.pageId = pageId;
	}
	public int getLayoutId() {
		return layoutId;
	}
	public void setLayoutId(int layoutId) {
		this.layoutId = layoutId;
	}
}
